tools: change cpumaps to uint8_t
authorJuergen Gross <juergen.gross@ts.fujitsu.com>
Wed, 3 Nov 2010 12:10:46 +0000 (12:10 +0000)
committerJuergen Gross <juergen.gross@ts.fujitsu.com>
Wed, 3 Nov 2010 12:10:46 +0000 (12:10 +0000)
commit9180abe5683a107588014dc57058e756c0047bb6
tree0f7c7c633da4a3b381175c2381af12dbde9134ea
parent02bac862c003b2da5bb5c396e3ca19a7fb6990ea
tools: change cpumaps to uint8_t

Cpumap types in tools (libxc and libxl) are changed to be based on bytes like
in the interface to the hypervisor.
To make handling easier the size of used cpumaps is always based on the
number of physical cpus supported by the hypervisor. This eliminates the need
to keep track of the cpumap size in external interfaces.
In libxl a macro for cycling through a cpumap is added (libxl_for_each_cpu).

Interfaces changed:
libxl_set_vcpuaffinity()
libxl_cpumap_alloc()
xc_vcpu_setaffinity()
xc_vcpu_getaffinity()
xc_cpupool_freeinfo()

Signed-off-by: Juergen Gross <juergen.gross@ts.fujitsu.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/libxc/xc_cpupool.c
tools/libxc/xc_domain.c
tools/libxc/xc_misc.c
tools/libxc/xenctrl.h
tools/libxl/libxl.c
tools/libxl/libxl.h
tools/libxl/libxl_utils.c
tools/libxl/libxl_utils.h
tools/libxl/xl_cmdimpl.c
tools/python/xen/lowlevel/xc/xc.c